package stdying.handyweibo.injection.restmodule;

import dagger.Module;
import dagger.Provides;
import retrofit.Retrofit;
import stdying.handyweibo.injection.PreActivity;
import stdying.handyweibo.rest.WeiboShowService;
import stdying.handyweibo.rest.WeiboUserService;

/**
 * Description: WeiboApiServiceModule
 * 个人信息
 * Author: liulili
 * Created: 2015-11-24
 */
@Module(includes = Retrofit2Module.class)
public class WeiboApiServiceModule {
    @Provides
    @PreActivity
    WeiboUserService provideWeiboUserService(Retrofit retrofit){
        return retrofit.create(WeiboUserService.class);
    }
    @Provides
    @PreActivity
    WeiboShowService provideWeiboShowService(Retrofit retrofit){
        return retrofit.create(WeiboShowService.class);
    }
}
